array object

This method is used to determine whether the given array is empty. That is to say, contains no elements.

bool is_empty()

Parameters:
None.

Return value:
True if the array is empty, false otherwise.

Remarks:
None.

Example:
// Declare an array and check if it is empty.

void main()
{
string[] names(5);
names[0]="Damien";
names[1]="Philip";
names[2]="Percival";
names[3]="Byron";
names[4]="Humphrey";
if(names.is_empty())
{
alert("Oh dear!", "The array seems to be empty, despite attempting to fill it.");
exit();
}
alert("Information", "The array is nicely full of data.");
}